all:write read

write:write.cc contacts.pb.cc
	g++ $^ -o $@ -std=c++11 -lprotobuf

read:read.cc contacts.pb.cc
	g++ $^ -o $@ -std=c++11 -lprotobuf

.PHONY:protoc
protoc:
	protoc --cpp_out=. contacts.proto

.PHONY:clean
clean:
	rm -f write read